<div class="login-box" *ngIf="flag">
  <div>
    <h1>求职者注册</h1>
    <div class="name">
      <label>账号：</label>
      <input type="text" [(ngModel)]="talent.code" placeholder="账号" autocomplete="on">
    </div>
    <div class="password">
      <label>密  码：</label>
      <input type="password" [(ngModel)]="talent.password" placeholder="密码" maxlength="16">
    </div>

    <div class="name">
      <label>姓名：</label>
      <input type="text" [(ngModel)]="talent.name" placeholder="姓名" autocomplete="on">
    </div>
    <div class="name">
      <label>邮箱：</label>
      <input type="text" [(ngModel)]="talent.email" placeholder="邮箱" autocomplete="on">
    </div>
    <div class="name">
      <label>电话：</label>
      <input type="text" [(ngModel)]="talent.phone" placeholder="电话"  autocomplete="on">
    </div>
    <div class="name">
      <label>年龄：</label>
      <input class="age" type="text" [(ngModel)]="talent.age" placeholder="年龄" autocomplete="on">
      <label class="sex">性别：</label>
      <mat-form-field id="sex">
        <mat-select [(ngModel)]="talent.gender">
          <mat-option value ="1">男</mat-option>
          <mat-option value ="2">女</mat-option>
        </mat-select>
      </mat-form-field>
    </div>
    <div class="login">
      <button class="bt-1" (click)="addTalent()">提交</button>
      <button class="bt-1" (click)="setFlag()" >企业注册入口</button>
    </div>
  </div>
</div>

<div class="login-box" *ngIf="!flag">
  <div>
    <h1>企业注册</h1>
    <div class="name">
      <label>账号：</label>
      <input type="text" [(ngModel)]="company.code" placeholder="账号" autocomplete="on">
    </div>
    <div class="password">
      <label>密  码：</label>
      <input type="password" [(ngModel)]="company.password" placeholder="密码" maxlength="16">
    </div>
    <div class="name">
      <label>企业名称：</label>
      <input type="text" [(ngModel)]="company.name" placeholder="企业名称" autocomplete="on">
    </div>
    <div class="name">
      <label>企业邮箱：</label>
      <input type="text" [(ngModel)]="company.email" placeholder="企业邮箱" autocomplete="on">
    </div>
    <div class="name">
      <label>电话：</label>
      <input type="text" [(ngModel)]="company.phone" placeholder="电话"  autocomplete="on">
    </div>
    <div class="name">
    </div>
    <div class="name">
      <label>联系人：</label>
      <input class="age" type="text" [(ngModel)]="company.linkman" placeholder="联系人"  autocomplete="on">
      <label class="sex">人数：</label>
      <input class="age"  type="text" [(ngModel)]="company.numbers" placeholder="人数"  autocomplete="on">
    </div>
    <div class="name">
      <label>联系地址：</label>
      <input type="text" [(ngModel)]="company.address" placeholder="联系地址"  autocomplete="on">
    </div>
    <div class="name">
      <label>服务宗旨：</label>
      <textarea [(ngModel)]="company.slogan" placeholder="服务宗旨" autocomplete="on"></textarea>
    </div>
    <div class="login">
      <button class="bt-1" (click)="addCompany()">提交</button>
      <button class="bt-1" (click)="setFlag()">个人注册入口</button>
    </div>
  </div>
</div>
<div class="screenbg">
  <ul>
    <li style="opacity: 0; visibility: visible;"><a href="javascript:;"><img src="/assets/images/0.jpg" style="width: 1903px;"></a></li>
    <li style="opacity: 0; visibility: visible;"><a href="javascript:;"><img src="/assets/images/1.jpg" style="width: 1903px;"></a></li>
    <li style="opacity: 1; visibility: visible;"><a href="javascript:;"><img src="/assets/images/2.jpg" style="width: 1903px;"></a></li>
  </ul>
</div>

<div *ngIf="0==1">
  <label>帐号:
    <input [(ngModel)]="company.code" placeholder="账号">
  </label>
  <label>密码:
    <input [(ngModel)]="company.password" placeholder="密码">
  </label>
  <label>姓名:
    <input [(ngModel)]="company.name" placeholder="姓名">
  </label>
  <label>邮箱:
    <input [(ngModel)]="company.email" placeholder="邮箱">
  </label>
  <label>电话:
    <input [(ngModel)]="company.phone" placeholder="电话">
  </label>
  <label>联系人:
    <input [(ngModel)]="company.linkman" placeholder="联系人">
  </label>
  <label>联系地址:
    <input [(ngModel)]="company.address" placeholder="联系地址">
  </label>
  <label>人数:
    <input [(ngModel)]="company.numbers" placeholder="人数">
  </label>
  <label>服务宗旨:
    <input [(ngModel)]="company.slogan" placeholder="服务宗旨">
  </label>
  <button (click)="addCompany()">提交</button>
</div>
